package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class TermAsteriskIntervalFactor implements IntervalTerm {

    private int beginIndex;
    private int endIndex;
    private Term term;
    private IntervalFactor intervalFactor;

    public TermAsteriskIntervalFactor(Term term, IntervalFactor intervalFactor) {
        this.beginIndex = term.getBeginIndex();
        this.endIndex = intervalFactor.getEndIndex();
        this.term = term;
        this.intervalFactor = intervalFactor;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public Term getTerm() {
        return term;
    }

    public IntervalFactor getIntervalFactor() {
        return intervalFactor;
    }

}
